import {
    getData
} from '../services/data_api';

export const loadData = async (dispatch) => {
    const res = await getData();
    dispatch({
        type: 'LOAD_DATA',
        payload: res.data
    });
}